/*-------------------------------------------------------------------------------
* file:     app_timer.h
* brief:    application
* copyright Copyright (C) 2020-2022 @ NanoIC
* Date:     2022-08-15
* Version:  V1.00
* Author:   JMH
*-------------------------------------------------------------------------------*/

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __APP_TIMER_H__
#define __APP_TIMER_H__

/* Includes ------------------------------------------------------------------*/
#include "common.h"
#include "bt.h"
#include <string.h>
#include "sys_console.h"
#include "pin.h"
#include "app_cfg.h"

/*---------------------------------------------------------------------------*/
#include "app_key.h"
#include "app_lowpower.h"
#include "one_wire_bus_app.h"
#include "app_upgrade.h"
#include "app_uart.h"
#include "app_factory.h"
#include "app_init.h"
#include "app_gsensor.h"
#include "app_flash_log.h"
#include "app_sleeptimer.h"

extern uint8_t global_key_test_status;

/* Private function--------------------------------------------------------*/
/**
 * @brief 定时器初始化
 * 
 */
void app_timer_init(void);

/**
 * @brief 定时器低功耗
 * 
 */
void app_timer_sleep(void);

/**t
 * @brief 键盘上传上电工作通知
 * 
 */
void app_power_on_notice(void);

/**
 * @brief 低功耗处理
 * 
 * @param on true 唤醒 ，false 休眠
 */
void app_timer_sleep_and_weakup_set(bool on);

#endif
